78% appendad

Code Review | FirstImpression.io

WordPress plugin FirstImpression.io scored78%from 54 tests.

About plugin

  • Plugin page: appendad
  • Plugin version: 1.4.6
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-5.9
  • WordPress version: 6.3.1
  • First release: Sep 29, 2013
  • Latest release: Jan 24, 2022
  • Number of updates: 43
  • Update frequency: every 70.7 days
  • Top authors: appendad (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,930 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.03MB] [CPU: ▼1.80ms] Passed 4 tests

Analyzing server-side resources used by FirstImpression.io
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.18 ▼1.53
Dashboard /wp-admin3.33 ▲0.0348.83 ▼4.99
Posts /wp-admin/edit.php3.38 ▲0.0350.03 ▲0.54
Add New Post /wp-admin/post-new.php5.91 ▲0.0393.44 ▼1.22
Media Library /wp-admin/upload.php3.26 ▲0.0336.62 ▲5.89
FirstImpression.io /wp-admin/options-general.php?page=firstimpression3.2032.67

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by FirstImpression.io
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,949 ▲18813.80 ▼0.5627.02 ▲24.9548.08 ▲3.46
Dashboard /wp-admin2,202 ▲285.64 ▲0.0590.01 ▼15.5538.74 ▼5.68
Posts /wp-admin/edit.php2,104 ▲42.02 ▼0.0240.13 ▲0.3236.71 ▲0.77
Add New Post /wp-admin/post-new.php1,541 ▲1522.61 ▼0.49606.36 ▼56.7150.16 ▲6.71
Media Library /wp-admin/upload.php1,404 ▲44.21 ▲0.0795.01 ▼12.0743.05 ▼2.62
FirstImpression.io /wp-admin/options-general.php?page=firstimpression8441.6523.4525.37

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

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
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=firstimpression
    • > Notice in wp-content/plugins/appendad/appendad.php+160
    Trying to access array offset on value of type bool

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_uninstall_hook() in wp-content/plugins/appendad/appendad.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% 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:
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Donate link: Invalid URI ("")
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === appendad === )
The official readme.txt is a good inspiration

appendad/appendad.php Passed 13 tests

Analyzing the main PHP file in "FirstImpression.io" version 1.4.6
122 characters long description:
FirstImpression.io helps publishers focus on content by freeing them from Ad-Tech and Ad-Operations with one line of code.

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
Everything looks great! No dangerous files found in this plugin179 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25851179

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png7.92KB3.06KB▼ 61.37%
assets/icon-128x128.png3.23KB1.90KB▼ 41.26%
assets/appendad.png7.93KB3.84KB▼ 51.60%