83% poet-ly

Code Review | Poet.ly

WordPress plugin Poet.ly scored83%from 54 tests.

About plugin

  • Plugin page: poet-ly
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.2
  • WordPress version: 6.3.1
  • First release: May 3, 2023
  • Latest release: May 6, 2023
  • Number of updates: 7
  • Update frequency: every 0.4 days
  • Top authors: pirmax (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /114 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼9.87ms] Passed 4 tests

Analyzing server-side resources used by Poet.ly
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.75 ▲2.97
Dashboard /wp-admin3.31 ▼0.0347.70 ▼19.28
Posts /wp-admin/edit.php3.36 ▲0.0145.67 ▼7.86
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.42 ▼13.53
Media Library /wp-admin/upload.php3.23 ▲0.0136.31 ▲1.21
Poet.ly /wp-admin/edit.php?page=poet.ly3.2032.72

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 9 new options
New WordPress options
can_compress_scripts
widget_recent-posts
poetly_default_author
poetly_default_status
widget_theysaidso_widget
db_upgraded
poetly_api_key
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Poet.ly
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5814.78 ▲0.411.67 ▲0.0144.33 ▲0.45
Dashboard /wp-admin2,222 ▲164.87 ▼1.02111.20 ▲4.4638.63 ▼6.29
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0135.02 ▼2.8831.86 ▼4.04
Add New Post /wp-admin/post-new.php1,548 ▲323.32 ▲0.07668.72 ▲18.8757.53 ▼11.39
Media Library /wp-admin/upload.php1,398 ▼54.24 ▲0.0098.15 ▼9.5245.51 ▼0.74
Poet.ly /wp-admin/edit.php?page=poet.ly8622.0221.9228.74

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/poet-ly/trunk/poetly.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/poet-ly/poetly.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Tags: You are using too many tags: 17 tag instead of maximum 10
Please take inspiration from this readme.txt

poet-ly/poetly.php 85% from 13 tests

Analyzing the main PHP file in "Poet.ly" version 1.0.0
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 148 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("poet-ly.php" instead of "poetly.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected242 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP34173242

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin