100% prime-strategy-page-navi

Code Review | Prime Strategy Page Navi

WordPress plugin Prime Strategy Page Navi scored 100% from 54 tests.

About plugin

  • Plugin page: prime-strategy-pa...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-5.0.3
  • WordPress version: 5.9.2
  • First release: Aug 18, 2011
  • Latest release: Feb 12, 2019
  • Number of updates: 12
  • Update frequency: every 228.7 days
  • Top authors: jim912 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

7,000+ active / 70,362 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Prime Strategy Page Navi
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0554.80 ▼2.49
Dashboard /wp-admin3.45 ▲0.0433.95 ▼0.36
Posts /wp-admin/edit.php3.68 ▲0.0442.56 ▲3.89
Add New Post /wp-admin/post-new.php6.92 ▼0.0592.67 ▼1,156.28
Media Library /wp-admin/upload.php3.34 ▲0.0429.07 ▲1.89

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Prime Strategy Page Navi
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,767 ▲915.18 ▼0.606.25 ▼0.742.28 ▲0.07
Dashboard /wp-admin2,892 ▲346.10 ▼0.07120.66 ▼15.74172.57 ▲6.55
Posts /wp-admin/edit.php2,688 ▼03.22 ▼0.0162.99 ▼9.07147.17 ▼2.69
Add New Post /wp-admin/post-new.php1,661 ▼5515.85 ▼5.89411.73 ▼42.34155.04 ▼7.45
Media Library /wp-admin/upload.php1,698 ▼05.52 ▼0.00149.04 ▲1.05188.35 ▼2.75

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: page navi, page navigation, pagenation

prime-strategy-page-navi/prime-strategy-page-navi.php Passed 13 tests

"Prime Strategy Page Navi" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
118 characters long description:
Adds the functions to display page navigation (pagination) on home and archives (categories, authors, date and so on).

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
No dangerous file extensions were detected223 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23411223

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity66.00
▷ Minimum class complexity66.00
▷ Maximum class complexity66.00
Average method complexity22.67
▷ Minimum method complexity5.00
▷ Maximum method complexity58.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods133.33%
▷ Protected methods00.00%
▷ Private methods266.67%
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
There are no PNG files in this plugin