84% wp-manutencao

Code Review | WordPress Manutenção

WordPress plugin WordPress Manutenção scored84%from 54 tests.

About plugin

  • Plugin page: wp-manutencao
  • Plugin version: 1.0.6
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.3
  • WordPress version: 6.3.1
  • First release: Jul 25, 2015
  • Latest release: Oct 18, 2023
  • Number of updates: 18
  • Update frequency: every 167.2 days
  • Top authors: filiprimo (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

10,000+ active /166,911 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.34MB] [CPU: ▼1.45ms] Passed 4 tests

Server-side resources used by WordPress Manutenção
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.80 ▲0.3341.40 ▼1.97
Dashboard /wp-admin3.65 ▲0.3450.46 ▲1.25
Posts /wp-admin/edit.php3.70 ▲0.3449.71 ▲4.49
Add New Post /wp-admin/post-new.php6.23 ▲0.3480.50 ▼7.27
Media Library /wp-admin/upload.php3.57 ▲0.3437.97 ▲2.21
Manutenção /wp-admin/options-general.php?page=fswpma_manutencao3.4831.78

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

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

Browser metrics Passed 4 tests

WordPress Manutenção: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.43 ▲0.171.78 ▲0.0146.22 ▲3.40
Dashboard /wp-admin2,202 ▲225.59 ▼0.0798.07 ▼2.8142.04 ▼1.31
Posts /wp-admin/edit.php2,101 ▲12.02 ▲0.0434.85 ▼1.1730.91 ▼3.56
Add New Post /wp-admin/post-new.php1,529 ▲123.23 ▲0.06652.07 ▼26.0752.09 ▼16.61
Media Library /wp-admin/upload.php1,404 ▲44.19 ▲0.0398.48 ▲0.6144.04 ▼1.92
Manutenção /wp-admin/options-general.php?page=fswpma_manutencao9732.0124.4541.79

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 32× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'League\\Container\\Argument\\LiteralArgument' not found in wp-content/plugins/wp-manutencao/vendor/league/container/src/Argument/Literal/BooleanArgument.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'League\\Container\\ContainerAwareInterface' not found in wp-content/plugins/wp-manutencao/vendor/league/container/src/Definition/DefinitionInterface.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'League\\Container\\Argument\\LiteralArgument' not found in wp-content/plugins/wp-manutencao/vendor/league/container/src/Argument/Literal/ObjectArgument.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'League\\Container\\ContainerAwareInterface' not found in wp-content/plugins/wp-manutencao/vendor/league/container/src/Inflector/InflectorAggregateInterface.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'League\\Container\\Argument\\ArgumentResolverInterface' not found in wp-content/plugins/wp-manutencao/vendor/league/container/src/ReflectionContainer.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'League\\Container\\ServiceProvider\\ServiceProviderInterface' not found in wp-content/plugins/wp-manutencao/vendor/league/container/src/ServiceProvider/BootableServiceProviderInterface.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'League\\Container\\Argument\\LiteralArgument' not found in wp-content/plugins/wp-manutencao/vendor/league/container/src/Argument/Literal/CallableArgument.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Container\otFoundExceptionInterface' not found in wp-content/plugins/wp-manutencao/vendor/league/container/src/Exception/NotFoundException.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'League\\Container\\ServiceProvider\\ServiceProviderAggregateInterface' not found in wp-content/plugins/wp-manutencao/vendor/league/container/src/ServiceProvider/ServiceProviderAggregate.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/wp-manutencao/vendor/league/container/src/Exception/ContainerException.php:10

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 96% from 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
5 plugin tags: maintenance, manuteno, coming soon, construction, em breve

wp-manutencao/wordpress-manutencao.php 92% from 13 tests

The main PHP script in "WordPress Manutenção" version 1.0.6 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-manutencao.php" instead of "wordpress-manutencao.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected2,661 lines of code in 65 files:
LanguageFilesBlank linesComment linesLines of code
PHP595807242,244
Markdown31000212
JSON100147
JavaScript18041
CSS14017

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity5.73
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.59
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces12
Interfaces17
Traits2
Classes30
▷ Abstract classes26.67%
▷ Concrete classes2893.33%
▷ Final classes27.14%
Methods197
▷ Static methods189.14%
▷ Public methods19196.95%
▷ Protected methods42.03%
▷ Private methods21.02%
Functions6
▷ Named functions233.33%
▷ Anonymous functions466.67%
Constants15
▷ Global constants533.33%
▷ Class constants1066.67%
▷ Public constants10100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin