10% blogroll2email

Code Review | blogroll2email

WordPress plugin blogroll2email scored10%from 54 tests.

About plugin

  • Plugin page: blogroll2email
  • Plugin version: 0.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4
  • WordPress version: 6.3.1
  • First release: Jul 19, 2015
  • Latest release: Dec 12, 2015
  • Number of updates: 5
  • Update frequency: every 29.8 days
  • Top authors: cadeyrn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /869 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Warning in wp-content/plugins/blogroll2email/blogroll2email.php+58
    mkdir(): No such file or directory

Server metrics [RAM: ▼1.84MB] [CPU: ▼56.85ms] Passed 4 tests

This is a short check of server-side resources used by blogroll2email
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.15 ▼1.324.86 ▼35.45
Dashboard /wp-admin2.17 ▼1.145.66 ▼47.38
Posts /wp-admin/edit.php2.17 ▼1.195.76 ▼44.19
Add New Post /wp-admin/post-new.php2.17 ▼3.726.76 ▼100.38
Media Library /wp-admin/upload.php2.17 ▼1.067.40 ▼29.58
Add New /wp-admin/link-add.php2.175.72
All Links /wp-admin/link-manager.php2.188.08
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category2.176.01

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 420 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
widget_links
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for blogroll2email
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲8813.22 ▼1.151.93 ▲0.0543.41 ▼0.72
Dashboard /wp-admin2,237 ▲495.79 ▼0.11103.43 ▼3.7543.90 ▲4.60
Posts /wp-admin/edit.php2,123 ▲311.97 ▼0.0236.84 ▼3.0134.62 ▼1.43
Add New Post /wp-admin/post-new.php1,545 ▲2523.05 ▼0.25671.32 ▼30.5856.27 ▼18.22
Media Library /wp-admin/upload.php1,422 ▲344.14 ▲0.04111.33 ▼11.7447.93 ▼0.63
Add New /wp-admin/link-add.php1,6442.2653.4536.77
All Links /wp-admin/link-manager.php1,0561.8424.9032.10
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category1,2962.1427.3031.12

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Warning in wp-content/plugins/blogroll2email/blogroll2email.php+58
    mkdir(): No such file or directory
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • widget_links
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit-tags.php?taxonomy=link_category
    • > Warning in wp-content/plugins/blogroll2email/blogroll2email.php+58
    mkdir(): No such file or directory

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 16× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/blogroll2email/vendor/mf2/mf2/tests/Mf2/ParseDTTest.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/blogroll2email/vendor/mf2/mf2/tests/Mf2/URLTest.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/blogroll2email/vendor/mf2/mf2/tests/Mf2/ParseUTest.php:12
    • > PHP Warning
      require(wp-content/plugins/blogroll2email/vendor/mf2/mf2/tests/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/blogroll2email/vendor/mf2/mf2/tests/test-suite/test-suite.php on line 23
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/blogroll2email/vendor/mf2/mf2/tests/Mf2/ParserTest.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/blogroll2email/vendor/mf2/mf2/tests/Mf2/ClassicMicroformatsTest.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/blogroll2email/vendor/mf2/mf2/tests/Mf2/MicroformatsWikiExamplesTest.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/blogroll2email/vendor/mf2/mf2/tests/Mf2/CombinedMicroformatsTest.php:17
    • > PHP Fatal error
      require(): Failed opening required 'wp-content/plugins/blogroll2email/vendor/mf2/mf2/tests/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/blogroll2email/vendor/mf2/mf2/tests/Mf2/bootstrap.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/blogroll2email/blogroll2email.php:45

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Donate link: Invalid URI found ("")
The official readme.txt might help

blogroll2email/blogroll2email.php Passed 13 tests

Analyzing the main PHP file in "blogroll2email" version 0.2.3
84 characters long description:
Pulls RSS, Atom and microformats entries from blogroll links and sends them as email

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 detected7,760 lines of code in 374 files:
LanguageFilesBlank linesComment linesLines of code
JSON233102,902
PHP237491,1612,801
HTML116143301,788
Markdown11400261
XML1008

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.29
Average class complexity20.27
▷ Minimum class complexity1.00
▷ Maximum class complexity175.00
Average method complexity2.55
▷ Minimum method complexity1.00
▷ Maximum method complexity62.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods186
▷ Static methods31.61%
▷ Public methods17795.16%
▷ Protected methods52.69%
▷ Private methods42.15%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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