84% maintainn-tools

Code Review | Maintainn Tools

WordPress plugin Maintainn Tools scored84%from 54 tests.

About plugin

  • Plugin page: maintainn-tools
  • Plugin version: 2.3.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.8
  • WordPress version: 6.3.1
  • First release: Apr 14, 2017
  • Latest release: Jul 23, 2021
  • Number of updates: 22
  • Update frequency: every 71.0 days
  • Top authors: tw2113 (63.64%)webdevstudios (40.91%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /6,205 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

An overview of server-side resources used by Maintainn Tools
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.24 ▼0.08
Dashboard /wp-admin3.47 ▲0.17765.65 ▲715.54
Posts /wp-admin/edit.php3.51 ▲0.1554.93 ▲2.96
Add New Post /wp-admin/post-new.php5.97 ▲0.0991.76 ▼4.59
Media Library /wp-admin/upload.php3.31 ▲0.0944.16 ▲9.88

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 53 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Maintainn Tools
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲13014.72 ▲0.091.83 ▲0.1735.58 ▼9.29
Dashboard /wp-admin2,275 ▲1015.62 ▼0.0083.22 ▼9.5992.72 ▲51.52
Posts /wp-admin/edit.php2,113 ▲132.01 ▲0.0537.29 ▼3.9533.40 ▼6.51
Add New Post /wp-admin/post-new.php1,545 ▲1923.03 ▼0.81680.07 ▼46.1662.51 ▲10.82
Media Library /wp-admin/upload.php1,416 ▲164.20 ▲0.02100.38 ▼12.7947.50 ▼0.56

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following
  • 7× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function maintainn_customer() in wp-content/plugins/maintainn-tools/views/about-page.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/maintainn-tools/maintainn-tools.php:475
    • > PHP Fatal error
      Uncaught Error: Class 'Browser' not found in wp-content/plugins/maintainn-tools/views/system-info.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/maintainn-tools/vendor/plugin-police.php:381
    • > PHP Fatal error
      Uncaught Error: Call to undefined function maintainn_customer() in wp-content/plugins/maintainn-tools/views/support-info.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'CPT_Core' not found in wp-content/plugins/maintainn-tools/vendor/plugin-notes.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/maintainn-tools/includes/cli.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: dashboard, widget

maintainn-tools/maintainn-tools.php Passed 13 tests

The main file in "Maintainn Tools" v. 2.3.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
44 characters long description:
A plugin to Maintainn your WordPress website

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin15,642 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript91611909,562
PHP206662,1853,137
SVG1002,671
Sass1311140
CSS42611132

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity26.88
▷ Minimum class complexity1.00
▷ Maximum class complexity177.00
Average method complexity2.89
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes15.88%
Methods230
▷ Static methods146.09%
▷ Public methods14663.48%
▷ Protected methods5122.17%
▷ Private methods3314.35%
Functions11
▷ Named functions981.82%
▷ Anonymous functions218.18%
Constants67
▷ Global constants22.99%
▷ Class constants6597.01%
▷ Public constants65100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.74MB with 0.44MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/Info.png161.58KB57.92KB▼ 64.15%
assets/img/Scanner.png207.58KB85.05KB▼ 59.03%
assets/img/Maintainn.png167.17KB60.54KB▼ 63.78%
assets/img/Tools.png212.52KB95.72KB▼ 54.96%
assets/img/Maintainn-logo.png5.22KB2.41KB▼ 53.81%