78% wp-fixed-ads

Code Review | Wp Fixed Ad code

WordPress plugin Wp Fixed Ad code scored 78% from 54 tests.

About plugin

  • Plugin page: wp-fixed-ads
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9.1
  • WordPress version: 6.3.1
  • First release: Aug 8, 2014
  • Latest release: Aug 8, 2014
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: Wuptii (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active / 1,298 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
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.53ms] Passed 4 tests

Analyzing server-side resources used by Wp Fixed Ad code
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.04 ▼0.39
Dashboard /wp-admin3.32 ▲0.0247.20 ▼2.05
Posts /wp-admin/edit.php3.37 ▲0.0245.41 ▼6.80
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.07 ▼12.89
Media Library /wp-admin/upload.php3.25 ▲0.0235.26 ▲2.15
Wp Fixed Ads /wp-admin/options-general.php?page=wp_fixed_ads3.1928.41

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Wp Fixed Ad code
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.33 ▼1.051.87 ▲0.1643.07 ▲0.59
Dashboard /wp-admin2,213 ▲225.86 ▲0.95100.86 ▼4.9237.90 ▼1.32
Posts /wp-admin/edit.php2,093 ▲72.01 ▼0.0233.39 ▼4.1835.99 ▲4.55
Add New Post /wp-admin/post-new.php1,537 ▲423.19 ▲0.07625.53 ▼52.8357.12 ▲4.29
Media Library /wp-admin/upload.php1,392 ▲44.19 ▼0.0293.21 ▼9.4440.38 ▼4.87
Wp Fixed Ads /wp-admin/options-general.php?page=wp_fixed_ads7842.0624.3024.69

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
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp_fixed_ads
    • > Notice in wp-content/plugins/wp-fixed-ads/index.php+38
    Trying to access array offset on value of type bool

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-fixed-ads/index.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

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
2 plugin tags: right and left fixed ad slots, wordpress fixed ad code

wp-fixed-ads/index.php 92% from 13 tests

This is the main PHP file of "Wp Fixed Ad code" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-fixed-ads.php" instead of "index.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
Success! There were no dangerous files found in this plugin77 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP191452
CSS10025

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions8
▷ Named functions8100.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
There are no PNG files in this plugin