84% moncahierjournal

Code Review | monCahierJournal

WordPress plugin monCahierJournal scored84%from 54 tests.

About plugin

  • Plugin page: moncahierjournal
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.0
  • WordPress version: 6.3.1
  • First release: Nov 25, 2014
  • Latest release: Nov 25, 2014
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: Alan CREVON (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /644 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
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by monCahierJournal
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.51 ▼5.21
Dashboard /wp-admin3.32 ▲0.0146.20 ▼9.08
Posts /wp-admin/edit.php3.37 ▲0.0151.03 ▲2.14
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.46 ▼38.79
Media Library /wp-admin/upload.php3.24 ▲0.0034.49 ▼1.24

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

monCahierJournal: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.24 ▼0.051.70 ▼0.0143.85 ▲1.03
Dashboard /wp-admin2,189 ▲125.54 ▼0.1183.66 ▼15.0539.84 ▼5.92
Posts /wp-admin/edit.php2,100 ▼31.99 ▼0.0336.67 ▼3.2933.14 ▼4.41
Add New Post /wp-admin/post-new.php1,531 ▲523.35 ▲0.16676.20 ▼48.6762.04 ▲4.47
Media Library /wp-admin/upload.php1,394 ▼34.20 ▼0.1096.18 ▼21.4943.46 ▼4.71

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/moncahierjournal/moncahierjournal.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: enseignement, ducation, primaire

moncahierjournal/moncahierjournal.php Passed 13 tests

The main PHP script in "monCahierJournal" version 1.0 is automatically included on every request by WordPress
99 characters long description:
Proposez à vos visiteurs des séances pédagogiques prêtes à intégrer dans monCahierJournal.com

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
Everything looks great! No dangerous files found in this plugin28 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP172928

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued 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

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