68% zedna-twitter-quotes

Code Review | Zedna Twitter Quotes

WordPress plugin Zedna Twitter Quotes scored68%from 54 tests.

About plugin

  • Plugin page: zedna-twitter-quotes
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.4
  • WordPress version: 6.3.1
  • First release: Jun 27, 2019
  • Latest release: Mar 12, 2020
  • Number of updates: 6
  • Update frequency: every 43.2 days
  • Top authors: zedna (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /476 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.90MB] [CPU: ▼36.35ms] Passed 4 tests

Server-side resources used by Zedna Twitter Quotes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0844.09 ▲1.51
Dashboard /wp-admin3.05 ▼0.2623.43 ▼25.59
Posts /wp-admin/edit.php3.05 ▼0.3126.84 ▼23.81
Add New Post /wp-admin/post-new.php3.05 ▼2.8425.43 ▼83.17
Media Library /wp-admin/upload.php3.05 ▼0.1824.73 ▼12.82
Twitter Quotes /wp-admin/options-general.php?page=zednatq3.0523.86

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 12 new options
New WordPress options
widget_theysaidso_widget
zednatq_utm_medium
zednatq_share_text
can_compress_scripts
zednatq_class
zednatq_utm_campaign
db_upgraded
zednatq_utm_source
zednatq_username
widget_recent-posts
...

Browser metrics Passed 4 tests

A check of browser resources used by Zedna Twitter Quotes
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4913.29 ▼1.031.97 ▼0.0644.68 ▲1.38
Dashboard /wp-admin2,213 ▲255.89 ▲0.0097.89 ▼14.8139.87 ▼1.13
Posts /wp-admin/edit.php2,090 ▼22.03 ▲0.0235.84 ▼5.8131.57 ▼4.92
Add New Post /wp-admin/post-new.php1,517 ▲323.43 ▼0.16690.22 ▲10.9162.44 ▼7.86
Media Library /wp-admin/upload.php1,392 ▲74.20 ▲0.0396.85 ▼5.7641.57 ▼1.76
Twitter Quotes /wp-admin/options-general.php?page=zednatq8932.0627.8526.41

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • Zombie WordPress options were found after uninstall: 12 options
    • widget_recent-comments
    • can_compress_scripts
    • zednatq_username
    • zednatq_class
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • zednatq_utm_source
    • zednatq_utm_campaign
    • zednatq_utm_medium
    • ...

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)
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=zednatq
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

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 server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_option() in wp-content/plugins/zedna-twitter-quotes/zedna-twitter-quotes.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: campaign, twitter, share, quotes, utm

zedna-twitter-quotes/zedna-twitter-quotes.php Passed 13 tests

Analyzing the main PHP file in "Zedna Twitter Quotes" version 1.0
71 characters long description:
Share your quotes in the content and let user to share them on Twitter.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected422 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP19232269
PO File1212177
CSS17076

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions8
▷ Named functions8100.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
No PNG files were detected