89% metamax

Code Review | MetaMax

WordPress plugin MetaMax scored89%from 54 tests.

About plugin

  • Plugin page: metamax
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7.2
  • WordPress version: 6.3.1
  • First release: Sep 23, 2016
  • Latest release: Oct 19, 2016
  • Number of updates: 7
  • Update frequency: every 20.2 days
  • Top authors: eoutvik (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,220 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼5.18ms] Passed 4 tests

An overview of server-side resources used by MetaMax
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1040.07 ▼11.35
Dashboard /wp-admin3.38 ▲0.0846.37 ▼5.31
Posts /wp-admin/edit.php3.50 ▲0.1448.49 ▲0.21
Add New Post /wp-admin/post-new.php5.96 ▲0.0891.95 ▼4.26
Media Library /wp-admin/upload.php3.31 ▲0.0837.21 ▲3.61

Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for MetaMax
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲8413.19 ▼1.191.69 ▼0.4841.91 ▼9.35
Dashboard /wp-admin2,206 ▲185.90 ▲0.08110.86 ▼4.3642.41 ▼0.59
Posts /wp-admin/edit.php2,086 ▼32.01 ▼0.0339.83 ▲3.3536.11 ▼0.16
Add New Post /wp-admin/post-new.php1,519 ▲523.40 ▲5.82692.73 ▲32.4969.41 ▲9.35
Media Library /wp-admin/upload.php1,391 ▼04.12 ▼0.0398.75 ▲2.3743.62 ▼0.56

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: twitter, seo, google, linkedin, meta description...

metamax/appex-metamax.php 85% from 13 tests

The principal PHP file in "MetaMax" v. 1.1.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("metamax.php" instead of "appex-metamax.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected572 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP536864527
PO File16645

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity25.67
▷ Minimum class complexity20.00
▷ Maximum class complexity32.00
Average method complexity3.35
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods32
▷ Static methods3093.75%
▷ Public methods32100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants14
▷ Global constants00.00%
▷ Class constants14100.00%
▷ Public constants14100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin