78% read-a-poem-month-by-month

Code Review | Read a Poem - Month by Month

WordPress plugin Read a Poem - Month by Month scored78%from 54 tests.

About plugin

  • Plugin page: read-a-poem-month...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2.2
  • WordPress version: 6.3.1
  • First release: Jul 19, 2014
  • Latest release: Jun 27, 2015
  • Number of updates: 15
  • Update frequency: every 22.9 days
  • Top authors: dandelionweb (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /1,442 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼1.52ms] Passed 4 tests

Analyzing server-side resources used by Read a Poem - Month by Month
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0543.24 ▲0.91
Dashboard /wp-admin3.40 ▲0.0556.70 ▲5.87
Posts /wp-admin/edit.php3.51 ▲0.1152.72 ▼2.61
Add New Post /wp-admin/post-new.php5.98 ▲0.0587.30 ▼10.23
Media Library /wp-admin/upload.php3.32 ▲0.0543.13 ▲6.45
All Poems /wp-admin/edit.php?post_type=poem3.3742.04
Add New /wp-admin/post-new.php?post_type=poem3.4347.84
Assign to Month /wp-admin/edit.php?post_type=poem&page=poem-assign-poem3.3038.04

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
poem
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Read a Poem - Month by Month
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6814.37 ▲0.172.64 ▲1.0243.97 ▼0.41
Dashboard /wp-admin2,225 ▲455.56 ▼0.1288.13 ▼5.1836.14 ▼4.78
Posts /wp-admin/edit.php2,130 ▲272.00 ▼0.0034.60 ▼8.4437.55 ▲0.71
Add New Post /wp-admin/post-new.php1,554 ▲2623.54 ▲0.41710.21 ▲43.9656.69 ▲4.66
Media Library /wp-admin/upload.php1,436 ▲364.14 ▼0.04115.62 ▲13.1349.23 ▲7.44
All Poems /wp-admin/edit.php?post_type=poem1,1111.9630.2430.47
Add New /wp-admin/post-new.php?post_type=poem2,1907.69191.7770.99
Assign to Month /wp-admin/edit.php?post_type=poem&page=poem-assign-poem1,0511.9923.9525.05

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
  • 38 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=poem&page=poem-assign-poem
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
  • 38 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=poem&page=poem-assign-poem
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known

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× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/read-a-poem-month-by-month/read-a-poem.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
8 plugin tags: poetry, quotes, dynamic, poem, writer...

read-a-poem-month-by-month/read-a-poem.php 92% from 13 tests

Analyzing the main PHP file in "Read a Poem - Month by Month" version 1.0.0
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("read-a-poem-month-by-month.php" instead of "read-a-poem.php")

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 detected200 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14157172
CSS17428

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions11
▷ Named functions11100.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
There are no PNG files in this plugin