90% simple-text-ads

Code Review | Simple Text Ads

WordPress plugin Simple Text Ads scored90%from 54 tests.

About plugin

  • Plugin page: simple-text-ads
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Jan 25, 2017
  • Latest release: Jan 27, 2017
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: exportsmedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.23ms] Passed 4 tests

Analyzing server-side resources used by Simple Text Ads
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.73 ▲2.15
Dashboard /wp-admin3.33 ▼0.0244.74 ▼14.10
Posts /wp-admin/edit.php3.38 ▲0.0248.72 ▲3.27
Add New Post /wp-admin/post-new.php5.91 ▲0.0296.56 ▲1.82
Media Library /wp-admin/upload.php3.25 ▲0.0232.48 ▲1.20

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Simple Text Ads: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.17 ▼1.431.77 ▲0.1143.09 ▲2.31
Dashboard /wp-admin2,208 ▲194.84 ▼0.08109.42 ▲4.3739.58 ▼1.29
Posts /wp-admin/edit.php2,091 ▲22.14 ▲0.1139.22 ▲2.5934.84 ▲3.64
Add New Post /wp-admin/post-new.php1,539 ▲618.28 ▼4.90592.38 ▼61.4050.12 ▼8.09
Media Library /wp-admin/upload.php1,390 ▼14.27 ▲0.0494.36 ▼15.2641.16 ▼7.54

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: ad, shortcode, marketing, advertising, cta

simple-text-ads/simple-text-ads.php Passed 13 tests

Analyzing the main PHP file in "Simple Text Ads" version 1.0
11 characters long description:
Description

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 detected265 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1150140
PHP1644969
CSS20056

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.57
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
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
icon.png3.13KB0.40KB▼ 87.16%