84% communaute-o-delices

Code Review | Communauté Odélices

WordPress plugin Communauté Odélices scored84%from 54 tests.

About plugin

  • Plugin page: communaute-o-delices
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.2
  • WordPress version: 6.3.1
  • First release: Jul 17, 2013
  • Latest release: Jul 17, 2013
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: juliabr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /809 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

This is a short check of server-side resources used by Communauté Odélices
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.63 ▲2.18
Dashboard /wp-admin3.31 ▲0.0148.95 ▼4.84
Posts /wp-admin/edit.php3.36 ▲0.0146.23 ▼3.89
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.98 ▼20.30
Media Library /wp-admin/upload.php3.23 ▲0.0131.97 ▼2.84

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Communauté Odélices
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲8214.14 ▼0.122.39 ▲0.7138.47 ▼2.71
Dashboard /wp-admin2,195 ▲185.65 ▼0.0391.25 ▲1.6940.87 ▼3.93
Posts /wp-admin/edit.php2,097 ▼31.97 ▼0.1135.53 ▼3.3133.71 ▼3.12
Add New Post /wp-admin/post-new.php1,526 ▼223.69 ▲0.41648.18 ▼25.6254.18 ▲1.82
Media Library /wp-admin/upload.php1,400 ▼34.24 ▲0.04100.42 ▼2.5344.02 ▼0.23

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/communaute-o-delices/communaute-o-delices.php:15

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)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: blog, cuisine, odelices, vote, recettes

communaute-o-delices/communaute-o-delices.php Passed 13 tests

The main PHP script in "Communauté Odélices" version 1.0 is automatically included on every request by WordPress
53 characters long description:
Ajoute un bouton "J'aime cet article" par Ôdélices.

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 plugin25 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP116825

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/btn_jaime_on.png4.41KB1.83KB▼ 58.54%
img/btn_ode.png2.18KB0.68KB▼ 68.97%
img/btn_jaime.png4.32KB1.83KB▼ 57.61%