83% wpjm-company-profile-page

Code Review | WPJM Company Profile Page

WordPress plugin WPJM Company Profile Page scored83%from 54 tests.

About plugin

  • Plugin page: wpjm-company-prof...
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 9, 2018
  • Latest release: Apr 22, 2020
  • Number of updates: 6
  • Update frequency: every 93.7 days
  • Top authors: gma992 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

600+ active /10,414 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.71ms] Passed 4 tests

Server-side resources used by WPJM Company Profile Page
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.52 ▼0.42
Dashboard /wp-admin3.35 ▲0.0444.01 ▼5.80
Posts /wp-admin/edit.php3.40 ▲0.0448.84 ▼0.56
Add New Post /wp-admin/post-new.php5.95 ▲0.0691.00 ▲0.16
Media Library /wp-admin/upload.php3.27 ▲0.0433.42 ▼4.04

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPJM Company Profile Page
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.48 ▼0.121.85 ▲0.0244.73 ▼0.34
Dashboard /wp-admin2,208 ▲204.95 ▲0.05118.19 ▲14.3239.98 ▼2.02
Posts /wp-admin/edit.php2,094 ▲52.03 ▼0.1438.80 ▼3.5836.55 ▲3.75
Add New Post /wp-admin/post-new.php1,539 ▲618.30 ▼4.64616.36 ▼49.7257.02 ▲0.65
Media Library /wp-admin/upload.php1,390 ▲54.21 ▲0.0196.80 ▼6.3139.90 ▼5.88

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors 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 get_header() in wp-content/plugins/wpjm-company-profile-page/company-archive-page-template.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5 in wpjm-company-profile-page/assets to your readme.txt
  • Tags: Please reduce the number of tags, currently 25 tag instead of maximum 10
You can look at the official readme.txt

wpjm-company-profile-page/wpjm-company-profile-page.php 92% from 13 tests

"WPJM Company Profile Page" version 1.3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 174 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected258 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP28784204
CSS21132
Markdown113022

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin