84% wp-fossil

Code Review | WP Fossil

WordPress plugin WP Fossil scored84%from 54 tests.

About plugin

  • Plugin page: wp-fossil
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.8
  • WordPress version: 6.3.1
  • First release: Sep 14, 2013
  • Latest release: Jan 18, 2014
  • Number of updates: 10
  • Update frequency: every 12.9 days
  • Top authors: zslabs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,709 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.00MB] [CPU: ▼6.86ms] Passed 4 tests

A check of server-side resources used by WP Fossil
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.83 ▲1.83
Dashboard /wp-admin3.31 ▲0.0051.63 ▼1.72
Posts /wp-admin/edit.php3.36 ▲0.0049.95 ▼4.42
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.49 ▼17.31
Media Library /wp-admin/upload.php3.23 ▲0.0039.38 ▼3.97

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WP Fossil
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲514.23 ▼0.181.75 ▼0.0943.33 ▲2.07
Dashboard /wp-admin2,192 ▲155.50 ▼0.1084.68 ▼6.4240.25 ▼5.89
Posts /wp-admin/edit.php2,100 ▲32.02 ▲0.0136.12 ▼3.3034.74 ▼1.29
Add New Post /wp-admin/post-new.php1,526 ▼022.95 ▼0.15683.06 ▲10.4662.98 ▲4.80
Media Library /wp-admin/upload.php1,400 ▼34.19 ▲0.1196.48 ▼4.9043.60 ▼5.55

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-fossil/wp-fossil.php:46

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === wp-fossil === )
The official readme.txt might help

wp-fossil/wp-fossil.php Passed 13 tests

The main PHP script in "WP Fossil" version 1.0 is automatically included on every request by WordPress
118 characters long description:
Provides support for media queries and emulating CSS3 pseudo-classes and attribute selectors in Internet Explorer 6-8.

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 detected433 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript389140392
JSON20034
PHP13367

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin