10% numeros-speciaux

Code Review | Numéros Spéciaux

WordPress plugin Numéros Spéciaux scored10%from 54 tests.

About plugin

  • Plugin page: numeros-speciaux
  • Plugin version: 0.92
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 6, 2017
  • Latest release: Jan 6, 2017
  • Number of updates: 22
  • Update frequency: N/A
  • Top authors: bonbouaz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /549 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, class 'bonbouaz_ns' not found

Server metrics [RAM: ▼1.24MB] [CPU: ▼44.10ms] Passed 4 tests

This is a short check of server-side resources used by Numéros Spéciaux
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.74 ▼0.7312.27 ▼27.42
Dashboard /wp-admin2.77 ▼0.5314.52 ▼34.06
Posts /wp-admin/edit.php2.77 ▼0.5815.60 ▼32.39
Add New Post /wp-admin/post-new.php2.77 ▼3.1113.71 ▼82.53
Media Library /wp-admin/upload.php2.77 ▼0.4513.66 ▼21.65

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Numéros Spéciaux
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲16213.59 ▼0.815.54 ▲3.5239.26 ▼8.60
Dashboard /wp-admin2,206 ▲185.91 ▲0.94111.34 ▲10.7044.35 ▲0.31
Posts /wp-admin/edit.php2,092 ▲32.18 ▲0.1239.42 ▼1.3936.65 ▼2.18
Add New Post /wp-admin/post-new.php1,514 ▼517.73 ▼5.32667.81 ▲55.9054.73 ▲5.96
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.1293.55 ▼5.5740.10 ▼4.53

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, class 'bonbouaz_ns' not found
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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 items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/numeros-speciaux/numeros-speciaux.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Contributors: The plugin contributors field is not present
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3 in numeros-speciaux/assets to your readme.txt
You can look at the official readme.txt

numeros-speciaux/numeros-speciaux.php 92% from 13 tests

"Numéros Spéciaux" version 0.92's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 191 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected192 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS1270122
JavaScript115138
PHP1291732

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin