84% wp-espritmanuel

Code Review | WP-EspritManuel

WordPress plugin WP-EspritManuel scored84%from 54 tests.

About plugin

  • Plugin page: wp-espritmanuel
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.0-3.5.1
  • WordPress version: 6.3.1
  • First release: May 22, 2013
  • Latest release: May 22, 2013
  • Number of updates: 8
  • Update frequency: N/A
  • Top authors: espritmanuel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /719 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

This is a short check of server-side resources used by WP-EspritManuel
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.79 ▼0.55
Dashboard /wp-admin3.32 ▲0.0149.01 ▼2.02
Posts /wp-admin/edit.php3.37 ▲0.0151.33 ▼4.89
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.73 ▼14.64
Media Library /wp-admin/upload.php3.24 ▲0.0142.23 ▲0.12

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP-EspritManuel
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲7914.48 ▲0.132.14 ▲0.5542.73 ▲0.14
Dashboard /wp-admin2,224 ▲574.87 ▼0.82103.19 ▲3.4042.31 ▼3.57
Posts /wp-admin/edit.php2,100 ▲32.02 ▲0.0333.99 ▼4.8937.52 ▲0.85
Add New Post /wp-admin/post-new.php1,526 ▼2817.64 ▼0.72693.71 ▲57.4251.31 ▼19.41
Media Library /wp-admin/upload.php1,400 ▲34.24 ▲0.06102.85 ▼5.0447.94 ▼0.25

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-espritmanuel/wp-espritmanuel.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (cliquer le nouveau bouton espritmanuel dans votre editeur d'article wordpress.), #2 (Le guide sera automatiquement inséré dans votre article)
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can look at the official readme.txt

wp-espritmanuel/wp-espritmanuel.php Passed 13 tests

The main PHP file in "WP-EspritManuel" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
71 characters long description:
Bouton dans l'éditeur de wordpress pour insérer un guide EspritManuel

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin109 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript110469
PHP171940

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions4
▷ Named functions4100.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.43MB with 0.19MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png61.00KB29.25KB▼ 52.05%
screenshot-3.png363.96KB80.80KB▼ 77.80%
screenshot-2.png11.15KB6.30KB▼ 43.46%
em.png0.90KB0.89KB▼ 0.87%