84% je-suis-rock

Code Review | Je suis Rock

WordPress plugin Je suis Rock scored84%from 54 tests.

About plugin

  • Plugin page: je-suis-rock
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-4.1
  • WordPress version: 6.3.1
  • First release: Aug 25, 2015
  • Latest release: Aug 25, 2015
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: xamoth (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /522 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
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼8.75ms] Passed 4 tests

Analyzing server-side resources used by Je suis Rock
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.43 ▼2.89
Dashboard /wp-admin3.31 ▼0.0445.58 ▼17.61
Posts /wp-admin/edit.php3.36 ▲0.0043.06 ▼1.17
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.52 ▼13.32
Media Library /wp-admin/upload.php3.23 ▲0.0036.85 ▲4.25

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Je suis Rock
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲8213.58 ▼0.801.98 ▲0.3345.81 ▲2.64
Dashboard /wp-admin2,206 ▲244.88 ▼1.00114.63 ▲8.1042.76 ▲3.11
Posts /wp-admin/edit.php2,086 ▼32.00 ▼0.0434.72 ▼2.2535.03 ▼3.41
Add New Post /wp-admin/post-new.php1,542 ▲2818.36 ▲0.79645.40 ▲17.6554.23 ▲5.10
Media Library /wp-admin/upload.php1,388 ▼04.23 ▲0.0194.20 ▼2.0639.43 ▼4.69

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/je-suis-rock/je-suis-rock-left.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/je-suis-rock/je-suis-rock.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (This ribbon will appear on your website and will link to the Candidate Facebook Page. (left side))
Please take inspiration from this readme.txt

je-suis-rock/je-suis-rock.php 92% from 13 tests

The primary PHP file in "Je suis Rock" version 1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 164 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
There were no executable files found in this plugin16 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP221816

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
4 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot.png43.63KB20.90KB▼ 52.09%
banner-772x250.png43.63KB20.90KB▼ 52.09%
je-suis-rock.png11.79KB4.80KB▼ 59.30%
je-suis-rock-left.png12.75KB5.01KB▼ 60.71%