89% first-post-link

Code Review | First Post Link

WordPress plugin First Post Link scored89%from 54 tests.

About plugin

  • Plugin page: first-post-link
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.1-3.5
  • WordPress version: 6.3.1
  • First release: Jan 1, 2013
  • Latest release: Jan 1, 2013
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: strange_attractor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,186 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.74ms] Passed 4 tests

Analyzing server-side resources used by First Post Link
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.09 ▲0.19
Dashboard /wp-admin3.31 ▲0.0148.93 ▼1.57
Posts /wp-admin/edit.php3.36 ▲0.0049.08 ▼5.32
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.56 ▼20.27
Media Library /wp-admin/upload.php3.24 ▲0.0037.16 ▲2.60

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for First Post Link
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.19 ▼0.161.53 ▼0.0942.31 ▲1.47
Dashboard /wp-admin2,192 ▲185.58 ▼0.0491.21 ▼0.5237.73 ▼6.58
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0338.06 ▲2.3634.99 ▼0.72
Add New Post /wp-admin/post-new.php1,531 ▼423.32 ▲5.17628.92 ▲9.9262.28 ▲2.00
Media Library /wp-admin/upload.php1,403 ▲64.13 ▼0.12103.30 ▲3.6846.81 ▲0.55

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
  • Screenshots: Screenshot #1 (Here's an example of the plugin in use. The red circle is around a link to the first (oldest) post.) image missing
The official readme.txt is a good inspiration

first-post-link/first_post_link.php 92% from 13 tests

Analyzing the main PHP file in "First Post Link" version 0.1
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("first-post-link.php" instead of "first_post_link.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected23 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1132523

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions2
▷ Named functions2100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png3.21KB3.00KB▼ 6.42%