78% easy-post-to-post-links

Code Review | Post-to-Post Links

WordPress plugin Post-to-Post Links scored78%from 54 tests.

About plugin

  • Plugin page: easy-post-to-post...
  • Plugin version: 4.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9
  • WordPress version: 6.3.1
  • First release: Dec 21, 2004
  • Latest release: Jun 10, 2018
  • Number of updates: 5
  • Update frequency: every 983.8 days
  • Top authors: coffee2code (100%)matt (40%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /10,113 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
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼8.93ms] Passed 4 tests

This is a short check of server-side resources used by Post-to-Post Links
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0240.20 ▲1.74
Dashboard /wp-admin3.33 ▼0.0146.57 ▼19.08
Posts /wp-admin/edit.php3.45 ▲0.0947.10 ▼2.82
Add New Post /wp-admin/post-new.php5.92 ▲0.0389.43 ▼13.15
Media Library /wp-admin/upload.php3.26 ▲0.0336.32 ▼0.65
Post2Post /wp-admin/options-general.php?page=easy-post-to-post-links/post-to-post-links.php3.2435.53

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Post-to-Post Links
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7313.14 ▼1.151.56 ▼0.1142.49 ▼4.04
Dashboard /wp-admin2,228 ▲315.85 ▼0.01101.49 ▼6.1739.85 ▼2.67
Posts /wp-admin/edit.php2,104 ▲42.02 ▼0.0439.28 ▲1.8035.54 ▲0.55
Add New Post /wp-admin/post-new.php1,548 ▲1223.13 ▲0.01646.42 ▲3.9357.50 ▼12.33
Media Library /wp-admin/upload.php1,407 ▲74.22 ▼0.07105.77 ▲0.1642.90 ▼5.16
Post2Post /wp-admin/options-general.php?page=easy-post-to-post-links/post-to-post-links.php9942.0430.3236.94

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% 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 0% 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
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/easy-post-to-post-links/tests/bootstrap.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/easy-post-to-post-links/tests/bootstrap.php on line 17
    • > PHP Warning
      require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/easy-post-to-post-links/tests/bootstrap.php on line 17

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 93% 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
7 plugin tags: links, post, shortcode, coffee2code, posts...

easy-post-to-post-links/post-to-post-links.php 85% from 13 tests

Analyzing the main PHP file in "Post-to-Post Links" version 4.2
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 145 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("easy-post-to-post-links.php" instead of "post-to-post-links.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,101 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP52515291,051
Bourne Shell17322
Markdown114014
XML10014

PHP code Passed 2 tests

A brief analysis 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.36
Average class complexity54.33
▷ Minimum class complexity2.00
▷ Maximum class complexity133.00
Average method complexity2.82
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes133.33%
▷ Concrete classes266.67%
▷ Final classes150.00%
Methods89
▷ Static methods44.49%
▷ Public methods7483.15%
▷ Protected methods1314.61%
▷ Private methods22.25%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
c2c_minilogo.png3.49KB1.91KB▼ 45.43%