84% post-network

Code Review | Post Network

WordPress plugin Post Network scored84%from 54 tests.

About plugin

  • Plugin page: post-network
  • Plugin version: 1.4.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.2
  • WordPress version: 6.3.1
  • First release: Oct 30, 2021
  • Latest release: Apr 11, 2023
  • Number of updates: 16
  • Update frequency: every 33.4 days
  • Top authors: naotoonodera (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,087 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼9.33ms] Passed 4 tests

This is a short check of server-side resources used by Post Network
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.0842.84 ▼7.97
Dashboard /wp-admin3.45 ▲0.0651.32 ▼11.75
Posts /wp-admin/edit.php3.57 ▲0.1750.48 ▼2.27
Add New Post /wp-admin/post-new.php6.05 ▲0.1285.67 ▼15.32
Media Library /wp-admin/upload.php3.38 ▲0.1042.22 ▲3.36
Settings /wp-admin/admin.php?page=post_network_settings3.3432.63
Visualize /wp-admin/admin.php?page=post_network3.3739.01

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
post_network
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Post Network
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲6814.18 ▼0.421.72 ▼0.6343.39 ▲0.22
Dashboard /wp-admin2,248 ▲686.01 ▲0.35141.62 ▲48.2842.09 ▲0.49
Posts /wp-admin/edit.php2,150 ▲503.00 ▲1.0242.41 ▲2.2036.41 ▼2.22
Add New Post /wp-admin/post-new.php1,572 ▲4423.24 ▲0.20660.31 ▼7.9537.95 ▼23.23
Media Library /wp-admin/upload.php1,450 ▲565.32 ▲1.14110.98 ▲10.9943.93 ▲1.40
Settings /wp-admin/admin.php?page=post_network_settings9292.7231.8829.39
Visualize /wp-admin/admin.php?page=post_network9272.9159.5326.48

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • post_network
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 21 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=post_network
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
  • 21 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=post_network
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: internal link, link, graph, seo plugin, links...

post-network/post-network.php 92% from 13 tests

The main PHP script in "Post Network" version 1.4.2 is automatically included on every request by WordPress
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages")

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
No dangerous file extensions were detected667 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP2112139442
CSS210131
JavaScript286594

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity51.00
▷ Minimum class complexity51.00
▷ Maximum class complexity51.00
Average method complexity2.79
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods28
▷ Static methods517.86%
▷ Public methods28100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
3 PNG files occupy 0.34MB with 0.22MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png206.30KB72.66KB▼ 64.78%
screenshot-1.png123.14KB37.83KB▼ 69.28%
screenshot-2.png19.04KB8.34KB▼ 56.22%