90% wp-associate-post-r2

Code Review | WP Associate Post R2

WordPress plugin WP Associate Post R2 scored90%from 54 tests.

About plugin

  • Plugin page: wp-associate-post-r2
  • Plugin version: 5.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.2.2
  • WordPress version: 6.3.1
  • First release: Jun 22, 2018
  • Latest release: Jun 23, 2023
  • Number of updates: 43
  • Update frequency: every 42.5 days
  • Top authors: satonyan (97.67%)delightstar (4.65%)

Code review

54 tests

User reviews

1 review

Install metrics

4,000+ active /28,615 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.25MB] [CPU: ▼4.30ms] Passed 4 tests

Server-side resources used by WP Associate Post R2
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2444.08 ▼4.20
Dashboard /wp-admin3.57 ▲0.2249.20 ▼16.78
Posts /wp-admin/edit.php3.68 ▲0.3253.67 ▲3.91
Add New Post /wp-admin/post-new.php6.15 ▲0.26111.76 ▲8.91
Media Library /wp-admin/upload.php3.49 ▲0.2639.41 ▼0.11
WP Associate Post R2 /wp-admin/options-general.php?page=wp-associate-post-r23.5633.93

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 46 new files
Database: 1 new table, 7 new options
New tables
wp_wpap_cache
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
wp-associate-post-r2
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for WP Associate Post R2
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.08 ▼0.281.62 ▼0.1245.04 ▼0.76
Dashboard /wp-admin2,199 ▲195.61 ▼0.0692.88 ▲3.3043.52 ▼3.68
Posts /wp-admin/edit.php2,104 ▲42.00 ▲0.0340.85 ▲1.9035.50 ▼3.73
Add New Post /wp-admin/post-new.php1,542 ▲1618.46 ▼4.99603.15 ▼115.8082.38 ▲28.27
Media Library /wp-admin/upload.php1,401 ▲44.19 ▼0.02103.72 ▼11.3246.91 ▼2.83
WP Associate Post R2 /wp-admin/options-general.php?page=wp-associate-post-r21,2792.0523.9239.84

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 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
7 plugin tags: amazon, yahoo, post, affiliate, links...

wp-associate-post-r2/wp-associate-post-r2.php 92% from 13 tests

"WP Associate Post R2" version 5.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 179 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin4,713 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
CSS104961052,271
PHP21220141,925
JavaScript6417480
JSON10037

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity33.56
▷ Minimum class complexity2.00
▷ Maximum class complexity195.00
Average method complexity4.86
▷ Minimum method complexity1.00
▷ Maximum method complexity63.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods76
▷ Static methods810.53%
▷ Public methods5572.37%
▷ Protected methods00.00%
▷ Private methods2127.63%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants26
▷ Global constants726.92%
▷ Class constants1973.08%
▷ Public constants19100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.12MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/editor.png116.81KB55.20KB▼ 52.74%
images/noimage_160px.png0.74KB0.64KB▼ 12.96%
images/icon.png4.22KB2.98KB▼ 29.46%
images/noimage_500px.png2.59KB2.11KB▼ 18.36%