83% foxy-board

Code Review | Foxy Board

WordPress plugin Foxy Board scored83%from 54 tests.

About plugin

  • Plugin page: foxy-board
  • Plugin version: 0.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5.0+
  • WordPress version: 6.3.1
  • First release: Aug 4, 2013
  • Latest release: Oct 16, 2013
  • Number of updates: 12
  • Update frequency: every 6.1 days
  • Top authors: Nefzaoui (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Analyzing server-side resources used by Foxy Board
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.22 ▼0.54
Dashboard /wp-admin3.33 ▼0.0249.66 ▼15.31
Posts /wp-admin/edit.php3.38 ▲0.0253.73 ▲6.69
Add New Post /wp-admin/post-new.php5.91 ▲0.02101.21 ▲0.86
Media Library /wp-admin/upload.php3.25 ▲0.0239.68 ▲3.36

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Foxy Board
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.10 ▼0.251.66 ▲0.0543.66 ▲2.92
Dashboard /wp-admin2,202 ▲215.59 ▼0.1391.29 ▼18.5441.00 ▲4.14
Posts /wp-admin/edit.php2,104 ▲41.95 ▼0.0438.61 ▲2.7835.48 ▲0.38
Add New Post /wp-admin/post-new.php6,267 ▲4,74126.13 ▲2.99977.46 ▲290.3559.26 ▼5.25
Media Library /wp-admin/upload.php1,404 ▲14.21 ▲0.03108.93 ▲2.3246.40 ▼1.01

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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/foxy-board/foxy-board.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Tags: There are too many tags (13 tag instead of maximum 10)
  • Screenshots: Please add images for these screenshots: #1 (Foxy Board App Widget for a single app, light theme, english), #2 (Foxy Board inserting apps widget for blog post editing screen, english)
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === foxy-board === )
You can look at the official readme.txt

foxy-board/foxy-board.php Passed 13 tests

"Foxy Board" version 0.5.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
88 characters long description:
Easily Embed and Preview (Mozilla) Firefox Marketplace Apps in a stylish and modern way.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin293 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS180175
PHP111991
JavaScript15027

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.70
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods10100.00%
▷ Public methods10100.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

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png17.91KB7.93KB▼ 55.71%
img/Review_Stars_regular.png1.93KB1.82KB▼ 5.75%
screenshot-2.png10.17KB6.26KB▼ 38.45%