73% wp-company

Code Review | WP Company

WordPress plugin WP Company scored 73% from 54 tests.

About plugin

  • Plugin page: wp-company
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.7.1
  • WordPress version: 6.3.1
  • First release: Nov 22, 2013
  • Latest release: Nov 26, 2013
  • Number of updates: 20
  • Update frequency: every 0.2 days
  • Top authors: Buooy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,307 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.10MB] [CPU: ▼1.80ms] Passed 4 tests

Server-side resources used by WP Company
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.75 ▼5.36
Dashboard /wp-admin3.42 ▲0.1248.17 ▼2.50
Posts /wp-admin/edit.php3.54 ▲0.1852.32 ▲6.23
Add New Post /wp-admin/post-new.php6.00 ▲0.1290.87 ▼3.35
Media Library /wp-admin/upload.php3.35 ▲0.1240.01 ▲4.03
Company Details /wp-admin/options-general.php?page=wp-company3.3235.22

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Company
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲15213.95 ▼0.447.53 ▲5.2438.29 ▼5.84
Dashboard /wp-admin2,213 ▲255.82 ▲0.9694.55 ▼4.8738.45 ▼4.87
Posts /wp-admin/edit.php2,093 ▲71.99 ▼0.0738.96 ▲3.1234.49 ▲3.21
Add New Post /wp-admin/post-new.php1,517 ▼2517.52 ▼0.78666.33 ▲64.9550.64 ▼9.37
Media Library /wp-admin/upload.php1,395 ▲134.20 ▲0.0396.95 ▲2.1342.82 ▼0.16
Company Details /wp-admin/options-general.php?page=wp-company8562.0423.5225.94

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=wp-company
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=wp-company
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 0% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-company/public/views/public.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/wp-company/admin/views/admin.php:46

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: company, maintain, details, information

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

The main file in "WP Company" v. 1.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
10 characters long description:
WP Company

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
No dangerous file extensions were detected723 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP7161441695
JavaScript29728
CSS2020

PHP code Passed 2 tests

A brief analysis 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.23
Average class complexity14.67
▷ Minimum class complexity8.00
▷ Maximum class complexity20.00
Average method complexity2.28
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods32
▷ Static methods721.88%
▷ Public methods2784.38%
▷ Protected methods00.00%
▷ Private methods515.62%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.25MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png18.41KB7.38KB▼ 59.90%
assets/screenshot-2.png51.13KB11.42KB▼ 77.67%
assets/banner-1544x500.png23.98KB9.63KB▼ 59.84%
assets/screenshot-3.png121.49KB32.00KB▼ 73.66%
assets/screenshot-1.png44.12KB13.59KB▼ 69.20%